package com.aqie.appletserver.service;

import com.baidu.aip.nlp.AipNlp;

/**
 * https://www.cnblogs.com/ngy0217/p/9006716.html
 * 静态内部类实现模式（线程安全，调用效率高，可以延时加载）
 */
public class AipNlpSingleton {

    private static class SingletonClassInstance{
        private static final AipNlp instance=new AipNlp("15309389", "BFzaf89WorUiw5P5voaElqlvrXNKSqsI", "D7Qv37sFGxNnv6p4T5LRMtcEG98ekjU5");
    }

    private AipNlpSingleton(){
    }

    public static AipNlp getInstance(){
        return SingletonClassInstance.instance;
    }
}
